package com.example.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.SysUsr;
import com.example.entity.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUsrMapper extends BaseMapper<SysUsr> {
//    @ResultMap("sysUserVoMap")
//    @Select("SELECT u.*,r.* FROM sys_user as u left join sys_role as r on u.usr_role_id=r.role_id")
    Page pageList(Page page, @Param("ew") Wrapper<SysUserVo> wrapper);
}
